local scheduler = import("framework.scheduler")
local DaoJuBase =import(".DaojuBase")
local RushEffect =class("RushEffect",function () return DaoJuBase.new() end)

function RushEffect:ctor()
 self.name ="rush"
 local sprite =display.newSprite("#daoju0002.png",0,0)
 self:addChild(sprite)

end

function RushEffect:onColliWithFish() --道具触发
 DaoJuBase.onColliWithFish(self) --如果super不管用的话，就这样弄
 scheduler.performWithDelayGlobal(handler(self,self.doRush),0.3)
end



function RushEffect:printMe()
 print("DaoJu",self.name,self.a,self.b)
end

function RushEffect:doRush()
 print("doRush")
 viewController:setStateRush()
end

function RushEffect:onComplete()

end

return RushEffect
